﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using CDB.LinqModel.Data;

namespace CDB.LinqModel
{
    public partial class Banner
    {
        private IDataRepository _dataObject;
        public Banner(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void Create()
        {
            _dataObject.CreateBanner(this);
        }
        public void Update()
        {
            _dataObject.UpdateBanner(this);
        }
        public void Delete()
        {
            _dataObject.DeleteBanner(this);
        }
        public void GetBannerById()
        {
            _dataObject.GetBannerById(this);
        }
        public void GetBannerByBannerName()
        {
            _dataObject.GetBannerByBannerName(this);
        }
        public Boolean GetVolusionNEmailId()
        {
            return _dataObject.GetVolusionNEmailId(this);
        }
        public List<Banner> GetAllBanners()
        {
            return _dataObject.GetAllBanners();
        }
        public List<Banner> GetAllBannersByTypeID(int ImageType)
        {
            return _dataObject.GetAllBannersByTypeID(ImageType);
        }
    }

}
